package com.am.lottery.db.schema

import com.am.lottery.db.entity.PrizeLevelEntity
import org.ktorm.schema.Table
import org.ktorm.schema.int
import org.ktorm.schema.long
import org.ktorm.schema.varchar

object PrizeLevel : Table<PrizeLevelEntity>("prize_level") {
    val id = long("id").primaryKey().bindTo { it.id }
    val lotteryId = long("lottery_id").bindTo { it.lotteryId }
    val group = int("_group").bindTo { it.group }
    val lotteryCondition = varchar("lottery_condition").bindTo { it.lotteryCondition }
    val prizeLevel = varchar("prize_level").bindTo { it.prizeLevel }
    val sort = int("_sort").bindTo { it.sort }
    val stakeAmount = int("stake_amount").bindTo { it.stakeAmount }
    val stakeCount = int("stake_count").bindTo { it.stakeCount }
}